package com.whli.autumn.mall.metadata.service;

import com.whli.autumn.core.extend.service.IBaseService;
import com.whli.autumn.mall.metadata.domain.dto.perunit.PerUnitQueryDTO;
import com.whli.autumn.mall.metadata.domain.entity.PerUnit;
import com.whli.autumn.mall.metadata.domain.vo.perunit.PerUnitVO;

import java.util.List;

/**
 * <p>计量单位业务</p>
 *
 * @author whli
 * @version 1.0.0
 * @since 2023-05-22 13:57
 */
public interface IPerUnitService extends IBaseService<PerUnit> {

    /**
     * <p>查询所有可用计量单位</p>
     *
     * @author whli
     * @since 2023/5/27 10:10
     * @param entity
     * @return
     */
    List<PerUnitVO> listPerUnit(PerUnitQueryDTO entity);

    /**
     * <p>启用计量单位</p>
     *
     * @author whli
     * @since 2023/5/22 14:13
     * @param id
     * @return
     */
    boolean enable(String id);

    /**
     * <p>禁用计量单位</p>
     *
     * @author whli
     * @since 2023/5/22 14:13
     * @param id
     * @return
     */
    boolean disable(String id);

}
